// components/headNavigation/index.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    title: {
      type: String,
      value: '标题',
    },
    leftIconUrl: {
      type: String,
      value: 'https://636c-cloud1-1ga8zsp16c57584a-1308614351.tcb.qcloud.la/icon/%E8%BF%94%E5%9B%9E%E5%9B%BE%E6%A0%87.svg?sign=79439b8cd2d0a579eacea3cce539a565&t=1653132902'
    },
    delta: {
      type: Number,
      value: 1
    },
    bg: {
      type: String,
      value: "#FEB65F"
    },
    fontWeight: {
      type: Number,
      value: 800
    }
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    navBack() {
      let that = this;
      wx.navigateBack({
        delta: that.data.delta,
      })
    }
  }
})